<?php

namespace Chat\Controller;

use Think\Controller;

class TestController extends Controller {

    public function verify() {
        if (IS_POST) {
            if ($_REQUEST['code'] == '0000') {
                echo 'success';
            } else {
                echo 'error';
            }
        } else {
            echo 'not allow get method verify';
        }
    }

}
